package com.ygs.secs.model;

import java.io.Serializable;

/**
 * 企业图片资源
 */
public class EnterprisePhoto implements Serializable {
    //资源编号
    private Integer photoid;

    //图片名
    private String photoname;

    //所属企业
    private Enterprise enterprise;

    private static final long serialVersionUID = 1L;

    public Integer getPhotoid() {
        return photoid;
    }

    public void setPhotoid(Integer photoid) {
        this.photoid = photoid;
    }

    public String getPhotoname() {
        return photoname;
    }

    public void setPhotoname(String photoname) {
        this.photoname = photoname;
    }

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", photoid=").append(photoid);
        sb.append(", photoname=").append(photoname);
        sb.append(", enterpriseid=").append(enterprise.getEnterpriseid());
        sb.append("]");
        return sb.toString();
    }
}